<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

use Hyperf\HttpServer\Router\Router;
use \App\Controller\Customer\CustomerController;


Router::addServer('ws', function () {
    Router::get('/ws/global', 'App\Service\WebSocketGlobalController');
});


Router::addGroup('/backend/v1', function () {

//    Router::get('/chat/transacts', [CustomerController::class, 'getChatTransacts'], ['operation' => '客服查询介入订单']);
//    Router::put('/chat/transact/close', [CustomerController::class, 'setChatTransactClose'], ['operation' => '客服查询介入订单']);
//    Router::get('/chat/transact/msgs', [CustomerController::class, 'getChatTransactWithCustomer'], ['operation' => '客服查询介入订单']);

}, [
    'middleware' => [
        \App\Middleware\BackendOuthMiddleware::class,
    ],
]);
